package com.jingtao.product.domain.response;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @ClassName:
 * @Description:
 * @Author: zengfanzhen
 * @Date: 2024/4/1 20:28:15
 */
@Data
public class ProductAttrResponse {

    @ApiModelProperty(value = "主键", example = "1")
    @NotNull(message = "主键不能为空")
    private Long id;

    @ApiModelProperty(value = "名称", example = "手机")
    @NotBlank(message = "名称不能为空")
    private String name;

    @ApiModelProperty(value = "属性数量", example = "5")
    @Min(value = 0, message = "属性数量不能小于0")
    private Integer attributeCount;

    @ApiModelProperty(value = "参数数量", example = "10")
    @Min(value = 0, message = "参数数量不能小于0")
    private Integer paramCount;
}

